<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link href="<%=request.getContextPath()%>/css/style.css"
	rel="stylesheet" type="text/css" media="all">
<script type="text/javascript"
		src="<%=request.getContextPath()%>/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript"
		src="<%=request.getContextPath()%>/js/adminOperator.js"></script>
<script type="text/javascript">
$(document).ready(
		function() {
			var arr=new Array();
			arr = $("#limits1").val().split('$');
			if(arr[0] == 1){
				$("#limits1").val("1");
				$("#limits1").attr("checked","checked");
			}
			if(arr[0] == 2){
				$("#limits2").val("2");
				$("#limits2").attr("checked","checked");
			}
			if(arr.length>1 && arr[1]==2){
				$("#limits2").val("2");
				$("#limits2").attr("checked","checked");
			}
			
			if ($("#cardtypevalue").val() != "") {
				$("#cardtype").val($("#cardtypevalue").val());
			}
			
			$("input#limits2").click(function(){
				if($("#limits2").attr("checked")){
					$("#limits2").val("2");
				}else{
					$("#limits2").val("");
				}
			});
			
			$("input#limits1").click(function(){
				if($("#limits1").attr("checked")){
					$("#limits1").val("1");
				}else{
					$("#limits1").val("");
				}
			});
		});
</script>
</head>
<body background="<%=request.getContextPath()%>/images/bg_right.gif">
	<table width="80%" border="0" cellpadding="0" cellspacing="0"
		align="center">
		<tr>
			<td height="299">
				<table width="85%" align="center" cellpadding=5 cellspacing=0>
					<tr>
						<td height="41" align=center><span class="alert">
								修改用户操作员信息 </span></td>
					</tr>
				</table>
				<form action="<%=request.getContextPath()%>/AdminEditSave.html" method="post" onsubmit="return checkInfoForEidt();">
					<table width="85%" border=0 align="center" cellpadding="3"
						cellspacing="1" bgcolor="#cccccc">
						<tr>
							<td width="40%" class=list03>帐号：</td>
							<td width="60%" class=list02>${adminOP.operatoraccount}</td>
							<input name="operatoraccount" type="hidden" value="${adminOP.operatoraccount}"></input>
						</tr>
						<tr>
							<td width="40%" class=list03>姓名：</td>
							<td width="60%" class=list02><input id="operatorname" name="operatorname"
								value="${adminOP.operatorname}" maxlength="100" /> <font id="operatornameerror"
								color="red"> </font></td>
						</tr>
						<tr>
							<td width="40%" class=list03>证件类型：</td>
							<input id="cardtypevalue" type="hidden"
								value="${adminOP.cardtype}" />
							<td width="60%" class=list02><select id="cardtype"
								name="cardtype">
									<c:forEach items="${dictionaryList}" var="dictionary">
										<option value="${dictionary.id}">${dictionary.value}</option>
									</c:forEach>
							</select></td>
						</tr>
						<tr>
							<td width="40%" class=list03>证件号码：</td>
							<td width="60%" class=list02><input id="cardnum" name="cardnum"
								value="${adminOP.cardnum}" maxlength="50" /> <font id="cardnumerror" color="red">
							</font></td>
						</tr>
						<tr>
							<td width="40%" class=list03>权限：</td>
							<td width="60%" class=list02> <input type="checkbox" id="limits1" name="limits"
																value="${power}" />
															录入权限
									<input type="checkbox" id="limits2" name="limits" 
																value="${power}" />
															审核权限</td>
						</tr>
						<tr>
							<td width="40%" class=list03>手机：</td>
							<td width="60%" class=list02><input id="mobilephone" name="mobilephone"
								value="${adminOP.mobilephone}" maxlength="30" /> <font id="mobilephoneerror" 
								color="red"> </font></td>
						</tr>
						<tr>
							<td width="40%" class=list03>邮件：</td>
							<td width="60%" class=list02><input id="email" name="email"
								value="${adminOP.email}" maxlength="100" /> <font id="emailerror"
								color="red"> </font></td>
						</tr>

						<tr>
							<td width="" class=list03 colspan="2"><input type="submit"
								value="修 改" /> &nbsp;&nbsp;&nbsp; <input type="button"
								value="取 消" /></td>
						</tr>
					</table>
				</form>
			</td>
		</tr>
	</table>
</body>
</html>

